<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<h:body>
	<fieldset class="limite">
		<legend class="tituloFormulario">Limite</legend>

		<h:panelGrid columns="2">
			<h:panelGroup>
				<h:outputText value="Contas do Cliente: " />
				<p:selectOneListbox id="scroll"
					value="#{autoCompleteBean.selectedPlayer1}" converter="player"
					style="height:100px">
					<f:selectItems value="#{autoCompleteBean.players}" var="player"
						itemLabel="#{player.name}" itemValue="#{player}" />
				</p:selectOneListbox>  
				Data Validade:
					<h:inputText size="10"
					value="#{limiteBean.limite.dataValidade}"
					id="numeroConta" required="true"
					requiredMessage="Preencha o Número"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="numeroConta"
					errorClass="mensagemErro"></h:message>
				Taxa de Juros:
				<h:inputText size="60" value="#{limiteBean.limite.taxaJuros}"
					id="digitoConta" required="true"
					requiredMessage="Preencha o Digito"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="digitoConta"
					errorClass="mensagemErro"></h:message>				
				Valor:
				<h:inputText size="10" value="#{imiteBean.limite.valor}"
					id="valor" required="true" requiredMessage="Preencha o Valor"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="valor" errorClass="mensagemErro"></h:message>
			</h:panelGroup>
			<f:facet name="footer">
				<h:panelGroup style="text-align:right" layout="block">
					<h:commandButton value="Realizar" style="text-align:right"
						actionListener="#{limiteBean.gravarLimite}"></h:commandButton>
				</h:panelGroup>
			</f:facet>
		</h:panelGrid>
	</fieldset>
</h:body>
</html>
